package org.ihelpuoo.parser.segment;

public final class Marks
{
	private char	markRight;
	private char[]	markHead;

	private Marks()
	{
		markHead = "${".toCharArray();
		markRight = '}';
	}

	private static Marks	marks	= null;

	public static Marks instance()
	{
		if (null == marks)
		{
			marks = new Marks();
		}
		return marks;
	}

	public char[] markHead()
	{
		return markHead;
	}

	public char markRight()
	{
		return markRight;
	}

	public char markLeft()
	{
		return markHead[1];
	}

	public char markStart()
	{
		return markHead[0];
	}
}
